package com.djf.eg.dao;

import java.util.List;

import com.djf.eg.entity.SysRole;
import com.github.pagehelper.Page;

public interface SysRoleDao {
	public List<SysRole> getAllRoles();
	public Page<SysRole> getRolesByPage();
	public void addRole(SysRole role);
	public void updateRole(SysRole role);
	public void deleteRole(int id);
	public void deleteRolePermissions(int roleId);
	public void addRolePermission(int roleId, int permissionId);
}
